<!DOCTYPE html>
<%@ page language="java" import="com.compuvest.web.*,java.util.Map" pageEncoding="UTF-8" %>

<%@ taglib uri="/WEB-INF/tld/head.tld" prefix="head" %>

<jsp:useBean id="sb" class="SQLBean" scope="application"/>
<jsp:useBean id="advertShow" class="AdvertShow" scope="application"/>
<jsp:useBean id="basket" class="Basket" scope="session"/>
<%
    String thisURL = application.getInitParameter("http");

    int categoryID = advertShow.getInt(request.getParameter("cid"), 573); // 573 globalcategory Notebooks &PDA

    session.setAttribute("session.categoryID", Integer.toString(categoryID));
%>
<html>
<head>
<title><%= application.getInitParameter("CompanyName") %></title>
<%@include file="./incl/scripts.txt" %>
</head>
<body>

<div id='cvbody'>

 <head:show />

 <div id='cvcont'>
  <table id='cvmain'>
  <colgroup><col width='200px'/><col width='*'/><col width='160px'/></colgroup>
  <tbody>
   <tr>
    <td id='cvleft' valign="top">

     <div id='leftmenu'></div>

    </td>
    <td id='cvcenter' align="center" valign="top">

      <img src="../img/ct/mgd.jpg" alt=""/>

      <%-- Navigation --%>
      <div id='cv_nav'>
        &#8226; <a href='<%= thisURL %>'>Home</a>
        &#8226; <a id='catName' href='<%= thisURL %>Cats.jsp?cid=<%= categoryID %>'></a>
      </div>

      <div id='advshow'></div>

    </td>
    <td id='cvright' valign="top">

     <div id='advright'></div>

    </td>
   </tr>
  </tbody>
  </table>
 </div>

 <div id='cvfoot'></div>

</div>

</body>
<script type="text/javascript">
  window.addEvent('domready', function() {
    new LeftMenu({gid:<%= categoryID %>,data:<%= advertShow.getLeftMenu() %>});
    new AdvertShow({data:<%= advertShow.getItemsCategoryPage("" + categoryID) %>,cols:5,count:15});
  });
</script>
</html>
